<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">修改模型</div>
</div>
<div class="bjui-pageContent">
    <div class="form">
        <form data-toggle="validate" action="{:U('Model/edit')}">
            <dl>
                <dt>模型名称：</dt>
                <dd>
                    <input type="text" name="name" class="  input-nm" value="{$vo.name}"  data-rule="required" data-tip="请填写模型名称" data-ok="OK"/>
                </dd>
            </dl>
            <dl>
                <dt>附加表：</dt>
                <dd>
                    <input type="text" name="tablename" class="input-nm" value="{$vo.tablename}" data-rule="required" data-tip="请填写表名" data-ok="OK" readonly="readonly" />
                    (表名小写，去掉默认表前缀)
                </dd>
            </dl>
            <dl>
                <dt>列表模板：</dt>
                <dd>
                    <select name="template_list"    data-toggle="selectpicker" data-width="200">
                        <foreach name='styleListList' item='v'>
                            <option value="{$v}" <if condition="$v eq $vo['template_list']">selected="selected"</if>
                            >{$v}
                        </option>
                    </foreach>
                </select>
            </dd>
        </dl>
        <dl>
            <dt>内容页模板：</dt>
            <dd>
                <select name="template_show"    data-toggle="selectpicker" data-width="200">
                    <foreach name='styleShowList' item='v'>
                        <option value="{$v}" <if condition="$v eq $vo['template_show']">selected="selected"</if>
                        >{$v}
                    </option>
                </foreach>
            </select>
        </dd>
    </dl>
    <dl>
        <dt>描述：</dt>
        <dd>
            <textarea name="description" class="tarea_default" cols="30">{$vo.description}</textarea>
        </dd>
    </dl>
    <dl>
        <dt>启用：</dt>
        <dd>
            <input data-toggle="icheck" data-label="启用" type="radio" name="status" value="1" <if condition="$vo['status'] eq 1">checked="checked"</if>
        />
        <input data-toggle="icheck" data-label="禁用" type="radio" name="status" value="0" <if condition="$vo['status'] eq 0">checked="checked"</if>
    />
</dd>
</dl>
<dl>
<dt>排序：</dt>
<dd>
    <input type="text" name="sort" class="  input-nm"  value="{$vo.sort}" />
</dd>
</dl>
<input type="hidden" name="id" value="{$vo.id}" />
</form>
</div>
</div>
<div class="bjui-pageFooter">
<ul>
<li>
<button type="button" class="btn-close" data-icon="close">关闭</button>
</li>
<li>
<button data-icon="save" class="btn btn-default" type="submit">保存</button>
</li>
</ul>
</div>